// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.BarLuckDao;
import com.liuxinlong.modules.entity.BarLuck;
import com.liuxinlong.modules.mapper.BarLuckMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年8月8日
 */
@Service
public class BarLuckDaoImpl extends ServiceImpl<BarLuckMapper, BarLuck> implements BarLuckDao {

    @Override
    public List<BarLuck> pageBarLuckList(Map<String, Object> queryParam) {
        return baseMapper.pageBarLuckList(queryParam);
    }

    @Override
    public int getBarLuckCount(Map<String, Object> queryParam) {
        return baseMapper.getBarLuckCount(queryParam);
    }

    @Override
    public void updateLuckStatus(String id, int targetStatus) {
        baseMapper.updateLuckStatus(id, targetStatus);
    }

    @Override
    public List<BarLuck> queryEffectiveLuck(String currentTime) {
        return baseMapper.queryEffectiveLuck(currentTime);
    }

    @Override
    public Map<String, Map<String, String>> queryLuckMap() {
        return baseMapper.queryLuckMap();
    }

    @Override
    public BarLuck getBarLuckBySn(String sn) {
        return baseMapper.getBarLuckBySn(sn);
    }
}
